#pragma once
#include "cupid.h"
#include "Singleton.h"

namespace cupid
{
class SocketThread;
class WorldThread;
class IMessagePort;
class Application :public Singleton<Application>
{
public:
	Application(void);
	~Application(void);
	
	void	init();

	void	run();

	CC_SYNTHESIZE(SocketThread*, m_socketThread, SocketThread);
	CC_SYNTHESIZE(WorldThread*, m_worldThread, WorldThread);
	CC_SYNTHESIZE(IMessagePort*, m_msgPort, MessagePort);

};
#define sApp cupid::Application::instance()
}
